python vs javascript performance